import javafx.collections.ObservableList;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.Node;
import javafx.scene.layout.VBox;
import javafx.scene.control.Button;

public class Test extends Application {
	public void start(Stage stage) {
		Button btnOK=new Button("OK");
		Button btnCancel=new Button();
		btnCancel.setText("Cancel");

		VBox pane=new VBox();
		ObservableList<Node> list=pane.getChildren();
		list.addAll(btnOK,btnCancel);
		System.out.println(list.size());

		Scene scene=new Scene(pane,100,100);
		stage.setScene(scene);
		stage.setTitle("stack pane");
		stage.show();
	}
}
